package aop1.aspectjAnnotation;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class LoggingAspectDemo {
	public static void main(String[] args) {
		ApplicationContext ac = new ClassPathXmlApplicationContext(
				"aop1/aspectjAnnotation/beans.xml");
		TestBean testBean = (TestBean) ac.getBean("test");
		testBean.work(1);
		testBean.stop(2);
	}
}
